home *** CD-ROM | disk | FTP | other *** search
-
-
-
- DDDDIIIIVVVV((((3333CCCC)))) DDDDIIIIVVVV((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- div, ldiv - perform integer division
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddlllliiiibbbb....hhhh>>>>
-
- ddddiiiivvvv____tttt ddddiiiivvvv ((((iiiinnnntttt nnnnuuuummmmeeeerrrr,,,, iiiinnnntttt ddddeeeennnnoooommmm))));;;;
-
- llllddddiiiivvvv____tttt llllddddiiiivvvv ((((lllloooonnnngggg iiiinnnntttt nnnnuuuummmmeeeerrrr,,,, lllloooonnnngggg iiiinnnntttt ddddeeeennnnoooommmm))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _d_i_v and _l_d_i_v compute the quotient and remainder resulting from the
- division of the integer dividend _n_u_m_e_r by the integer divisor _d_e_n_o_m. If
- the division is inexact, the quotient will be the nearest integer with
- less magnitude than the algebraic quotient (e.g., _d_i_v(_5/_2) yields _2, and
- _d_i_v(-_5/_2) yields -_2).
-
- _d_i_v operates on and returns iiiinnnntttt quantities. _l_d_i_v operates on and returns
- lllloooonnnngggg iiiinnnntttt quantities.
-
- Unless the result cannot be represented, _d_i_v and _l_d_i_v return the result
- in a structure (ddddiiiivvvv____tttt for _d_i_v, llllddddiiiivvvv____tttt for _l_d_i_v) which has two integer
- members: the quotient, _q_u_o_t, and the remainder, _r_e_m. These members are
- of type iiiinnnntttt for _d_i_v, and lllloooonnnngggg iiiinnnntttt for _l_d_i_v.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If _d_i_v or _l_d_i_v is invoked with a zero _d_e_n_o_m, the same integer divide-by-
- zero trap occurs as if the integer division had occurred in-line.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-